<?php
$q=$_GET["q"];

function getlang(){
		$lang = $_SESSION['lang'];
		if (empty($lang) || $lang == "EN") {
			$value = "../value/value_en.php";
		} else if($lang == "VN") {
			$value = "../value/value_vn.php";
		}
		else {
			$value = "../value/value_kr.php";
		}
		return $value;
	}
$value = getlang();
include($value);
include '../operations/connection.php';	

$sql="SELECT e.IDEmployee,e.FullName FROM employee e, department d WHERE e.IDDepartment=d.IDDepartment AND d.IDDepartment='$q' AND State=1;";

$result = mysql_query($sql);

echo "<table width='100%' class='templ' cellspacing='0'>
	                            	<tr class='titapp titapp2'>
	                                	<td><div align='center'>$l_employee_list</div></td>
	                                    <td width='50px'>
	                                   	</td>
	                                </tr>";

while($row = mysql_fetch_array($result))
  {
  echo "<tr >";
  echo "<td>" . $row['FullName'] . "</td>";
  echo "<td width='50px'>";
  echo "<div align='center'><a onclick='showApprove(".$row['IDEmployee'].")'><img src='images/approve.png' alt='' /></a></div>";

  echo '</td>';
  echo "</tr>";
 
  
  
  
  }
echo "</table>";

mysql_close($connection);
?>